CFLAGS=-g -Wall
TARGETS=test

all: $(TARGETS)

test: main.o login.o sql.o
	$(CC) $(LDFLAGS) -o $@ $^ $(LDLIBS) -I/usr/include/mysql -L/usr/lib -lmysqlclient -lstdc++ -lz
	rm *.o	

clean:
	rm -f $(TARGETS) *- *.o
